<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no" />
  <title>设置和获取元素的值</title>
  <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  <script src="./js/jquery-3.6.1.min.js"></script>
  <script src="./js/demo2.js"></script>
</head>

<body>
  <div class="box">
    <div class="content">
      <p>这是content中的p元素</p>
    </div>
    <div class="form-item">
      <input type="text" value="hello jquery" />
    </div>
    <div class="form-item">
      <input type="radio" name="gender" value="1" />男
      <input type="radio" name="gender" value="0" checked />女
    </div>
    <div class="form-item">
      <input type="checkbox" value="vue" name="subject" checked />vue
      <input type="checkbox" value="angular" name="subject" />angular
      <input type="checkbox" value="react" name="subject" />react
      <input type="checkbox" value="jquery" name="subject" checked />jquery
    </div>
    <div class="form-item">
      <select name="opt" id="opt">
        <option value="公司" selected>公司</option>
        <option value="个人">个人</option>
      </select>
    </div>
    <div class="form-item">
      <input type="file" class="avatar" />
    </div>
    <div>
      <button class="btn">点击获得p的html内容</button>
      <button class="btn">点击获得p的text内容</button>
      <button class="btn">点击获得性别</button>
      <button class="btn">点击获得科目</button>
      <button class="btn">点击获得单位</button>
    </div>
  </div>
</body>

</html>